using NUnit.Framework;

namespace BusinessRules
{
    public class EntityWithoutCode
    {
        public EntityComponent Component { get; set; }
        public string Text { get; set; }
        public int Price { get; set; }
        public int Count { get; set; }
        public int Total { get; set; }
    }

    [TestFixture]
    public class EntityWithoutCodeTests
    {
        [Test]
        public void Test()
        {
            var entity = new EntityWithoutCode();

            // memory leaks??
            var rules = RulesExtension.RegisterObject(entity);

            rules.AddValidationRule(e => e.Count > 0);
        }
    }
}